package com.hoshiibuy.purchase.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author campchen
 * @since 2019-05-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("podetail")
public class Podetail implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    /**
    * 采购单ID
    */
    @TableField("poid")
    private Long poid;


    /**
    * 主订单明细ID
    */
    @TableField("order_detailid")
    private Long orderDetailid;


    /**
    * 商品名称
    */
    @TableField("spu_name")
    private String spuName;


    /**
    * 规格
    */
    @TableField("sku_name")
    private String skuName;


    /**
    * sp uno
    */
    @TableField("spu_no")
    private String spuNo;


    /**
    * spu id
    */
    @TableField("spu_id")
    private Long spuId;


    /**
    * SKU NO
    */
    @TableField("sku_no")
    private String skuNo;


    /**
    * SKU ID
    */
    @TableField("sku_id")
    private BigDecimal skuId;


    /**
    * 税率
    */
    @TableField("rate2")
    private BigDecimal rate2;


    /**
    * 税额
    */
    @TableField("rateamount")
    private BigDecimal rateamount;


    /**
    * 金额
    */
    @TableField("amount")
    private BigDecimal amount;


    /**
    * 商品单位
    */
    @TableField("unit")
    private String unit;


    /**
    * 规格
    */
    @TableField("sku")
    private String sku;


    /**
    * 单价
    */
    @TableField("unitprice")
    private BigDecimal unitprice;


    /**
    * 数量
    */
    @TableField("quantity")
    private Long quantity;


    /**
    * 状态 0-初始 1-已出库 2-已作废
    */
    @TableField("status")
    private Integer status;


    /**
    * 运费
    */
    @TableField("shippongcost")
    private BigDecimal shippongcost;


    /**
    * 其他费用
    */
    @TableField("othercost")
    private BigDecimal othercost;


    /**
    * 税率
    */
    @TableField("rate")
    private BigDecimal rate;


    /**
    * 税额
    */
    @TableField("ratefee")
    private BigDecimal ratefee;


    /**
    * 合计金额
    */
    @TableField("totalamount")
    private BigDecimal totalamount;



}
